//
//  ICMusicPlayOpration.h
//  DWTeacher
//
//  Created by icochu on 2022/02/22.
//  Copyright © 2022年 wlf. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <pthread.h>
#import <UIKit/UIKit.h>
#import "ICMusicPlayModel.h"
#import "ObjectAFNetWorking.h"
NS_ASSUME_NONNULL_BEGIN
typedef void(^FinshModelBlock) (ICMusicPlayModel * __nullable model);
typedef void(^ListModelBlock) (NSArray * __nullable listArray);

@interface ICMusicPlayOpration : NSObject

/// Current image url.
@property (nonatomic, strong) NSArray *currentPlayModelArray;

@property (nonatomic, assign) NSInteger currentPlayIndex;

@property(nonatomic, assign) BOOL isLastData;

@property(nonatomic, assign) BOOL isFirstData;
@property (nonatomic, strong) ObjectAFNetWorking* objectAFN;
@property (nonatomic, copy) void(^beginLoading)(void);
@property (nonatomic, copy) void(^endLoading)(void);
- (void)playNewMusicQueueWithModelArray:(NSArray *)musicModelArray Complete:(FinshModelBlock)finshBlock;

- (void)playNewMusicQueueWithModelArray:(NSArray *)musicModelArray PlayIndex:(NSInteger)index Complete:(FinshModelBlock)finshBlock;

- (void)getNextModelComplete:(FinshModelBlock)finshBlock;

- (void)getFormerModelComplete:(FinshModelBlock)finshBlock;

- (void)getIndexModelWith:(NSInteger)index Complete:(FinshModelBlock)finshBlock;

-(void)getListDataWithID:(NSString *)idStr Complete:(ListModelBlock)finshBlock;
- (void)removeAllSelectData;
@end

NS_ASSUME_NONNULL_END
